package base;

import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.crypto.digest.DigestUtil;

/**
 * @program JavaBase
 * @description:
 * @author: zhanglu
 * @create: 2020-07-15 16:05:00
 */
public class Test01 {

    public static void main(String[] args) {
        long timestamp = System.currentTimeMillis();
        String nonce = IdUtil.fastUUID();
        String signature = DigestUtil.sha1Hex("accessToken KgTkbsLCowV6VIJdkH97" + timestamp + nonce);
        System.out.println("timestamp:" + timestamp);
        System.out.println("nonce:" + nonce);
        System.out.println("signature:" + signature);
    }

}
